home *** CD-ROM | disk | FTP | other *** search
- /******** System includes ********/
- #include <ResourceMgr.h>
- #include <ControlMgr.h>
- #include <MemoryMgr.h>
- /**********************************/
-
- /******** typedefs ********/
- typedef struct {
- char *cdef_ptr ;
- } CJMP, *CJMP_PTR, **CJMP_HDL ;
- /**********************************/
-
- /******** Subroutine prototypes ********/
- pascal long main( int, ControlHandle, int, long ) ;
- /**********************************/
-
- pascal long main( varCode, theControl, message, param )
- int varCode ;
- ControlHandle theControl ;
- int message ;
- long param ;
- {
- long result ;
- CJMP_HDL cjmp_hdl ;
-
- /* First get the CJMP resource */
- cjmp_hdl = (CJMP_HDL)GetResource( 'CJMP', 9999 ) ;
- if( cjmp_hdl != 0L ) {
- /* Now call the real cdef routine */
- result = CallPascalL( varCode, theControl, message, param, (**cjmp_hdl).cdef_ptr ) ;
- }
-
- return result ;
- }
-